﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Diagnostics.StackTrace
{
    public class StackTraceListerner : EventTraceListener
    {
        public static StackTraceListerner Instance = new StackTraceListerner();

        private List<EventTraceListener> Listeners = new List<EventTraceListener>();

        static StackTraceListerner()
        {
            Instance.Listeners.Add(new FetchRequestListener());
        }

        public override void Write(string target, object context, long elapsed)
        {
            foreach(var listerner in Listeners)
            {
                listerner.Write(target, context, elapsed);
            }
        }

        protected StackData CreateLog()
        {
            return new StackData()
            {

            };
        }
    }
}
